import 'package:flutter/widgets.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'res_index.dart';

class TextStyles {
  static TextStyle titleTextStyle = TextStyle(
      fontSize: ScreenUtil().setSp(38),
      fontFamily: AppFontFamily.PingFangBlod,
      color: Colours.tvBlack);


  static TextStyle nameTextStyle = TextStyle(
      fontSize: ScreenUtil().setSp(32),
      fontFamily: AppFontFamily.PingFangBlod,
      color: Colours.tvBlack);


  ///可借余额等 ...样式
  static TextStyle mineTs1 = TextStyle(
      fontFamily: AppFontFamily.PingFangMedium,
      fontSize: ScreenUtil().setSp(24),
      color: Colours.tv9c);

  ///可借余额等 数值 ...样式
  static TextStyle mineTs2 = TextStyle(
      fontFamily: AppFontFamily.PingFangMedium,
      fontSize: ScreenUtil().setSp(32),
      color: Colours.tvBlack);

  ///申请中的借款等 数值 ...样式
  static TextStyle mineTs3 = TextStyle(
      fontFamily: AppFontFamily.PingFangMedium,
      fontSize: ScreenUtil().setSp(32),
      color: Colours.baseTextColor);

  ///借款管理相关 ...样式
  static TextStyle mineTs4 = TextStyle(
      fontFamily: AppFontFamily.PingFangMedium,
      fontSize: ScreenUtil().setSp(24),
      color: Colours.tv4c);

  ///借款管理相关 ...样式
  static TextStyle mineTs5 = TextStyle(
      fontFamily: AppFontFamily.PingFangMedium,
      fontSize: ScreenUtil().setSp(32),
      color: Colours.tv4c);

  /// ...样式
  static TextStyle mineTs6 = TextStyle(
      fontFamily: AppFontFamily.PingFangMedium,
      fontSize: ScreenUtil().setSp(24),
      color: Colours.cc9cad3);
}

class Decorations {
  static Decoration bottom = BoxDecoration(
      border:
          Border(bottom: BorderSide(width: 0.33, color: Colours.baseBtnColor)));
}

/// 间隔
class Gaps {
  /// 水平间隔
  static Widget hGap5 = new SizedBox(width: Dimens.gap_dp5);
  static Widget hGap10 = new SizedBox(width: Dimens.gap_dp10);
  static Widget hGap15 = new SizedBox(width: Dimens.gap_dp15);

  /// 垂直间隔
  static Widget vGap5 = new SizedBox(height: Dimens.gap_dp5);
  static Widget vGap10 = new SizedBox(height: Dimens.gap_dp10);
  static Widget vGap15 = new SizedBox(height: Dimens.gap_dp15);
}

///卡片样式
class AppCardStyle {
  static const BoxDecoration decoration = BoxDecoration(boxShadow: [
    BoxShadow(
        color: Color(0x99fff5f5),
        offset: Offset(0.0, 0.0),
        blurRadius: 3.0,
        spreadRadius: 2.0),
    BoxShadow(color: Color(0x99fff5f5), offset: Offset(1.0, 1.0)),
    BoxShadow(color: Color(0xFFFFFFFF))
  ]);
}
